#main{
    display: flex;
    flex-direction: row;
}
#chat,#friend{
    border: 1px solid #e6e6e6;
    margin: 4px;
    padding: 4px;
    height: 400px;
    border-radius: 10px;
}
#chat{
    flex: 3;
    position: relative;
}
#chat #sub-box{
    position: absolute;
    bottom: 10px;
    left:10px;
}
#chat #chat-content{
    border: 1px solid #e6e6e6;
    height: 320px;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 8px;
}
#chat #send-obj{
    margin: 10px 0;
}
#friend{
    flex: 2;
}
.friend-box{
    box-sizing: border-box;
    padding: 4px;
    margin: 4px;
    border: 1px solid #e6e6e6;
    cursor: pointer;
    border-radius: 4px;
}
.friend-box:hover{
    background-color: royalblue;
    color: #fff;
}
.user-name,.send-time{
    font-size: 12px;
}
.msg-content{
    text-indent: 20px;
    border-top: 1px solid #e6e6e6;
}
.msg-my .msg-title{
    text-align: right!important;
}
.msg-my .msg-content{
    text-align: right!important;
}